package org.cboard.query;

import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 参数类型不匹配时，默认用这个
 */
@Service("defaultDyParamHandler")
public class DefaultDyParamHandler implements DyParamHandler{
	
	public String getValue(QueryParameter pp,String value){
		if (value == null || "".equals(value)) {
            value = pp.getDefaultValue();
        }
		return value;
	}

	@Override
	public List getSqlParamValue(String[][] data) {
		return null;
	}

}
